Skip to content

Conversation

mirao
Copy link
Contributor

@mirao mirao commented Sep 2, 2025

Fixed by VSCode Copilot with Claude Sonnet 4.

Personally I checked that the added unit test fails as expected before the fix.

Motivation/Description of the PR

  • Remove debugMode check that prevented retries when --verbose or --debug flags are used
  • Fix affects both retryFailedStep and enhancedRetryFailedStep plugins
  • Add regression test to ensure retries work correctly in debug mode
  • Resolves issue where plugin was disabled in debug mode without clear reason

Fixes #4384

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver
  • REST
  • FileHelper
  • Appium
  • TestCafe

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • coverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • stepTimeout
  • wdio
  • subtitles

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 🧹 Chore
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

- Remove debugMode check that prevented retries when --verbose or --debug flags are used
- Fix affects both retryFailedStep and enhancedRetryFailedStep plugins
- Add regression test to ensure retries work correctly in debug mode
- Resolves issue where plugin was disabled in debug mode without clear reason

Fixes codeceptjs#4384
@@ -26,7 +26,6 @@ module.exports = config => {

const when = err => {
if (!enableRetry) return false
if (store.debugMode) return false
Copy link
Contributor Author

@mirao mirao Sep 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if the fix is needed here too, because enhancedRetryFailedStep plugin seems the quite hot new feature: #5103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin "retryFailedStep" doesn't work in --debug or --verbose mode, searching for element fails immediately
1 participant